import { EffectServiceImpl } from "shared/modules/effect/service/EffectServiceImpl";

export default class EffectServerServiceImpl extends EffectServiceImpl {

    public getAnim(anim: string): Ctn.anim.AnimWeight | undefined {
        const weightMoudleScript = game.GetService('ServerStorage').FindFirstChild('anim')?.FindFirstChild(anim);
        if (weightMoudleScript?.IsA('ModuleScript')) {
            const weight = require(weightMoudleScript) as Ctn.anim.AnimWeight | undefined
            // loginfo?.info('weight', weight)
            return weight;
        }
        return
    }
}